package com.tang.exception_;

public class ArrayIndexOutOfBoundsException_ {
    public static void main(String[] args) {
        int[] arr = {1,2,4};
        for (int i = 0; i <= arr.length; i++) {
            System.out.println(arr[i]);
        }
        /*
        *
        * Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
        * 3at com.tang.exception_.ArrayIndexOutOfBoundsException_.main(ArrayIndexOutOfBoundsException_.java:7)
        *
        * */
    }
}
